package cate.game.play.buff.h;

import cate.game.play.buff.BuffHandler;
import cate.game.play.config.PlayCfgArgs;
import cate.game.play.fighter.Fighter;
import cate.game.play.proce.action.ctx.ActionCtx;

/**
 * 目标每死亡1次提升自身5%攻击、2%伤害加深上限10层，均不可驱散
 */
public class 腐蚀BH extends BuffHandler {

	private int 死亡buff;

	//死亡buff=??
	@Override
	public void parse(String code) {
		PlayCfgArgs args = new PlayCfgArgs(code);
		死亡buff = args.getInt("死亡buff", 0);
	}

	@Override
	public void onDead(ActionCtx action, Fighter killer) {
		buff.caster.buff.tryAddByTid(action, 死亡buff);
	}
}
